package com.ziyun.pop.mall.module.user.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户钱包表
 * 
 * @author : hu.song
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "user_wallet")
public class UserWallet {

	/** 用户id */
	@TableId(value = "user_id", type = IdType.INPUT)
	private Long userId;

	/** 支付密码 */
	private String payPassword;

	/** 会员账户余额 */
	private BigDecimal advance;

	/** 信用额度，大于0开启用户信用支付 */
	private Integer creditLimit;

	/** 当前可用信用 */
	private BigDecimal creditUse;

	/** 积分 */
	private Integer point;

	/** 预存款冻结金额 */
	private BigDecimal advanceFreeze;

	/**登录密码加密所用账号 */
	private String passwordAccount;
	
	/**创建时间*/
	private Integer createtime;
	
	

}
